// 热搜
import service from '../index'

export default function hostSearchApi(){
    return service({
        method:'GET',
        url:'/search/hot/detail'
    })
}

// 搜索
export const searchApi = (keywords: string | string[], type: number, offset: number, limit: number = 30) =>{
    return service({
        method:'GET',
        url:`/cloudsearch?keywords=${keywords}&type=${type}&offset=${offset}&limit=${limit}`
    })
}